@import './variables.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';

:root {
  --color: #3a52f0;
  --font-ha: #a1a1a1;
}

.el-button--primary {
  background-color: var(--color) !important;
  border-color: var(--color) !important;

  &:hover {
    background-color: #556aef !important;
  }
}

body {
  margin: 0;
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
    Microsoft YaHei, Arial, sans-serif;
  .el-button:active {
    top: 2px;
    position: relative;
  }
}

.el-radio__inner {
  box-shadow: none !important;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: ' ';
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center;
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(
    90deg,
    rgba(32, 182, 249, 1) 0%,
    rgba(32, 182, 249, 1) 0%,
    rgba(33, 120, 241, 1) 100%,
    rgba(33, 120, 241, 1) 100%
  );

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

.el-submenu,
.is-active,
.is-opened {
  .nest-menu {
    .router-link-exact-active {
      background-color: #ffffff !important;
    }
  }
}

// #app .sidebar-container .nest-menu .el-submenu>.el-submenu__title,
// #app .sidebar-container .el-submenu .el-menu-item {
//     background-color: rgba(255, 255, 255, 0) !important;
// }
.router-link-exact-active {
  background-color: #ffffff;
  .el-menu-item {
    color: #252c72 !important;
  }
  &:hover {
    background-color: #ffffff !important;
  }

  .el-menu-item,
  .is-active,
  .submenu-title-noDropdown {
    background-color: #ffffff !important;
  }
}

.el-submenu__title {
  .svg-icon {
    font-size: 16px;
  }
}

.el-table__header {
  tr {
    th:first-child {
      .cell {
        padding-left: 14px;
      }
    }
  }
}

.scrollbar-wrapper {
  .svg-icon {
    font-size: 14px !important;
  }
}

.normal_status {
  display: inline-block;
  background-color: #07c160;
  color: white;
  padding: 1px 10px;
  border-radius: 6px;
  font-size: 14px;
}

.warning_status {
  display: inline-block;
  background-color: #ff6161;
  color: white;
  padding: 1px 10px;
  border-radius: 6px;
  font-size: 14px;
}

.status_1 {
  color: #eeb45d;
}

.status_2 {
  color: #07c160;
}

.status_3 {
  color: #c7c7c7;
}

.status_4 {
  color: #ff6161;
}

.status_5 {
  color: #606266;
}

.status_6 {
  color: var(--font-ha);
}

.status_7 {
  color: var(--color);
}

.status_8 {
  color: #8cbdf5;
}

.spot {
  width: 6px;
  height: 6px;
  display: inline-block;
  margin-right: 6px;
  border-radius: 50%;
  background: #0a76a4;
}

.bg_1 {
  background: #e6a23c;
}

.bg_2 {
  background: #07c160;
}

.bg_3 {
  background: #c7c7c7;
}

.bg_4 {
  background: #ff6161;
}

.bg_5 {
  background: #606266;
}

.bg_7 {
  background: var(--color);
}

.strip_background {
  background: #f5f5f5;
  margin-bottom: 10px;
  border-radius: 5px;
  padding: 5px 0;
}

.flex_center {
  div {
    line-height: 18px;
  }
}

.el-steps {
  .el-step {
    //cursor: pointer;
    .is-process,
    .is-wait {
      .el-step__icon-inner {
        display: none !important;
      }
    }
  }

  .el-step__title {
    &.is-process {
      color: var(--color);
    }
  }

  .el-step__head {
    &.is-process {
      .el-step__icon {
        border: 2px solid var(--color);
      }
    }

    .el-step__icon {
      width: 20px;
      height: 20px;
    }

    .el-step__line {
      top: 9px;
    }
  }

  .el-step__main {
    .el-step__title::after {
      content: '';
      font-size: 15px;
    }
  }
}

.el-radio,
.el-radio--small {
  margin: 0 20px 10px 0 !important;
}

.addTeacher {
  padding-top: 6px;

  font {
    color: var(--color);
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;

    &:hover {
      cursor: pointer;
      text-decoration: underline;
    }
  }
}

.el-table__fixed::before,
.el-table__fixed-right::before {
  background-color: transparent;
}

.page .is-background {
  float: right;
  margin: 25px 0 0 0;
}

.page .el-pagination__total {
  height: 32px !important;
  line-height: 32px !important;
}

.box-card .page .el-pager .number {
  background-color: #fff !important;
  color: #000 !important;
  height: 32px !important;
  min-width: 32px !important;
  line-height: 32px !important;
  font-family: SourceHanSansCN-Normal;
  font-size: 14px;
  font-weight: normal;
  font-stretch: normal;
  letter-spacing: 0px;
  border: 1px solid #efeff1 !important;
  margin-right: 10px !important;
}

.box-card .page .el-pager .active {
  border: 1px solid var(--color) !important;
  height: 32px !important;
  min-width: 32px !important;
}

.box-card .page .el-pagination button {
  height: 32px !important;
  min-width: 32px !important;
  line-height: 32px !important;
  border: 1px solid #efeff1 !important;
  margin: 0 8px !important;
}

.page .el-pagination .el-select .el-input .el-input__inner {
  height: 32px !important;
  font-family: SourceHanSansCN-Normal;
  font-size: 14px;
  font-weight: normal;
  font-stretch: normal;
  letter-spacing: 0px;
  color: #111552;
}

.page .el-pagination__editor.el-input .el-input__inner {
  height: 32px !important;
  font-family: SourceHanSansCN-Normal;
  font-size: 14px;
  font-weight: normal;
  font-stretch: normal;
  letter-spacing: 0px;
  color: #111552;
}

.el-table__fixed-right {
  right: 0 !important;
  height: calc(100% - 10px) !important;
}

.el-table__fixed-right-patch {
  border-bottom: none;
  background-color: #4c5acf !important;
}

.untapped {
  width: 100%;
  height: 100%;
  background-color: #fff;
  text-align: center;
  padding-top: 2%;
}

.ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
